<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../vue.js"></script>
</head>

<body>
  <div id="app">
    <h1>{{msg}}</h1>
    <p>{{count}}</p>
    <p>{{count+1}}</p>
    <p>{{users}}</p>
    <p>{{score}}</p>
    <p>{{isHot?"热啊":"冷啊"}}</p>
    <p>{{sy}}</p>
    <p>{{null}}</p>
    <p>{{undefined}}</p>

    <!--react的列表渲染在vue中不适用,Vue用v-for指令
       <p>
      {{
        users.map(item=>{
          return <span>{{item}}</span>
        })
      }}
    </p> -->


    <!-- react的条件渲染(if)在vue中不适用,Vue用v-if或者v-show指令 -->

    <!-- if(isHot){
    return "re"
    }else{
    return "leng"
    } -->

  </div>

  <script>
    const vm = new Vue({
      el: "#app",
      data() {
        return {
          msg: "hello Vue",
          count: 1,
          users: ["laowang", "lucy", "lily"],
          score: {
            ch: 100,
            math: 30
          },
          isHot: false,
          sy: Symbol()
        }
      }
    })
  </script>
</body>

</html>